
const CollapsedReducer = (oldstate={collapsed:false}, action) => {
    let newstate = {...oldstate};
    switch(action.type){
        case 'change-collapsed':
            newstate.collapsed = !newstate.collapsed;
            return newstate;
        default:
            return oldstate;
    }
}

export default CollapsedReducer;